<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:insert="~{include :: header('配送单详情')}" />
</head>
<body class="hold-transition">
<div class="container-fluid mt-2 mb-2">
    <form id="form-user-add" class="form-horizontal" th:object="${order}">
        <br>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">订单号:</label>
            <span class="col-sm-3 col-form-label" th:text="${order.orderNo}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">下单人:</label>
            <span class="col-sm-3 col-form-label" th:text="${order.userName}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">金额:</label>
            <span class="col-sm-3 col-form-label text-red" th:text="*{payAmount/100} + ' 元'"></span>
            <label class="col-sm-2 text-sm-right col-form-label">支付方式:</label>
            <span class="col-sm-3 col-form-label text-blue" th:text="${order.payType == 'ACCOUNT'?'现金':'微信'}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">状态:</label>
            <span class="col-sm-3 col-form-label text-red" th:text="${order.status == 'SUCCESS'?'已支付':'未支付'}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">支付时间:</label>
            <span class="col-sm-3 col-form-label" th:text="${order.payTime != null?order.payTime:'-'}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">配送地址:</label>
            <span class="col-sm-8 col-form-label" th:text="${express.address}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">快递单号:</label>
            <span class="col-sm-8 col-form-label" th:text="${express.courierNo}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">快递单号:</label>
            <span class="col-sm-8 col-form-label" th:text="${express.userName}+' ('+${express.mobile}+')'"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">配送状态:</label>
            <span class="col-sm-8 col-form-label text-danger" th:text="${express.status==0?'未配送':'已配送'}"></span>
        </div>
    </form>
</div>
<th:block th:insert="~{include :: footer}" />
</body>
</html>